home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 17
/
CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso
/
CUCD
/
Programming
/
DiceSource
/
include
/
lib
/
rexx.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-02-01
|
2KB
|
53 lines
/*
* $VER: lib/rexx.h 1.0 (17.4.93)
*
* (c)Copyright 1992 Obvious Implementations Corp, All Rights Reserved
*
* DICE REXX SUPPORT
*/
#ifndef LIB_REXX_H
#define LIB_REXX_H
#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif
#ifndef EXEC_PORTS_H
#include <exec/ports.h>
#endif
long PlaceRexxCommand(struct MsgPort *, char *, char **, long *);
long PlaceRexxCommandDirect(struct MsgPort *, char *, char *, char **, long *);
void ProcessRexxCommands(struct MsgPort *);
short CreateGlobalDiceRexxPort(struct MsgPort *, char *);
short CreateDiceRexxPort(struct MsgPort *, char *);
void DeleteDiceRexxPort(struct MsgPort *);
int GetDiceRexxPortSlot(struct MsgPort *, char **);
extern struct Library *RexxSysBase; /* NULL if DICE was unable to open lib*/
/*
* Supplied by you, the user. You must supply a DoRexxCommand() function.
* Note that DICE will reply the rexxmsg for you, you need only process
* it.
*
* You must declare 'char *RexxHostName = "APPLICATION";'. DICE will create
* an appropriate public message port with the name "APPLICATION.xx" (DICE
* finds a free slot). If you supply 'char *RexxHostName = NULL;' then
* DICE will not create a message port by default.
*
* You can create AREXX ports with CreateDiceRexxPort() and
* CreateGlobalDiceRexxPort(). Passing NULL as the name to
* CreateDiceRexxPort() creates a private message port.
* CreateDiceRexxPort() returns the port slot number (for non-global public
* message ports) when applicable, -1 on error.
*/
long DoRexxCommand(void *rexxmsg, struct MsgPort *port, char *arg0, char **resstr);
extern char *RexxHostName;
extern short RexxSigBit;
#endif